import http from "./index.js"
/* 获取配置 */
const getconfig =()=>{
    return new Promise((resolve,reject)=>{
        http.get("/api/config/getconfig").then((res)=>{
            resolve(res)
        })
    })
}
/* 登录 */
const login = (data)=>{
    return new Promise((resolve,reject)=>{
        http.post("/api/user/login",data).then((res)=>{
            resolve(res)
        })
    })
}
/* 上传访问量 */
const addsiteview = ()=>{
    return new Promise((resolve,reject)=>{
        http.get("/api/config/addsiteview").then((res)=>{
            resolve(res)
        })
    })
}

export{
    getconfig,
    login,
    addsiteview,
  
};